﻿@model Project.Domain.Entities.User
@using Project.Resource.User         
@{
    ViewBag.Title = "Gamebetplus-Active";
}
<script type="text/javascript">
    $(document).ready(function () {
        if (culture == 'vi-VN') {
            $("#txtbirthday").datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat: 'dd-mm-yy',
                yearRange: '1930:2050'
            });
        }
        else {
            $("#txtbirthday").datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat: 'mm/dd/yy',
                yearRange: '1930:2050'
            });
        }
    });
</script>
<section class="container clearfix">
    <div class="left_content">
        <div id="deposit_ajax">

        </div>
        <div id="withdraw_ajax">

        </div>
        <script type="text/javascript">
            $(document).ready(function () {
                LoadDepositAjax(root, "ListDeposit", 1);
                LoadWithDrawAjax(root, "ListWithdraw", 1);
            });
        </script>        
        <div class="clearAll"></div>           
    </div>     
    <div class="info" style="width: 488px; margin-right: 15px; margin-left: 2px;">
        <div class="title_user">
            @ActiveUserResource.ActiveUserTile
        </div>
        @if (ViewBag.Status == "1")
        {           
            <div style="float: left; padding-left: 20px; font-size: 14px;margin-top: 10px;">                
                <p style="color: #424242; font-size: 14px;"><img src="@Url.Content("~/Content/images/check_16x16.png")" alt="Alternate Text" /> @ActiveUserResource.ActiveSuccess</p>            
            </div>
        }
        else
        {           
            @*<div style="float: left; padding-left: 20px; font-size: 14px;margin-top: 10px;">                
                <p style="color: #424242; font-size: 14px;"><img src="@Url.Content("~/Content/images/uncheck_16x16.png")" alt="Alternate Text" /> @ActiveUserResource.ActiveFailed</p>
                                    
            </div>*@
            <div style="float: left; padding-left: 20px; font-size: 14px;margin-top: 10px;">                
                <p style="color: #424242; font-size: 14px;"><img src="@Url.Content("~/Content/images/check_16x16.png")" alt="Alternate Text" /> @ActiveUserResource.ActiveSuccess</p>            
            </div>

        }
    </div> 
    <div id="content_right" style="float: left;">
        <div id="match_result">
        </div>

        <div class="clearAll"></div>

        <div id="match_inplay">
        </div>
    </div>
    <div class="clearAll"></div>        
</section>
<div id="activeSuccess" title="Actived Successful" style="font-family: Tahoma,Geneva,Arial,sans-serif; display: none;">
    @Html.Raw(ActiveUserResource.ActiveSuccess)
</div>

<div id="activefailed" title="Actived unsucces" style="font-family: Tahoma,Geneva,Arial,sans-serif; display: none;">
        @Html.Raw(ActiveUserResource.ActiveFailed)    
</div>
<script type="text/javascript">
    $(document).ready(function () {
        getMatchInPlay();
        getMatchResult();
        setInterval(function () {
            getMatchResult(), getMatchInPlay();
        }, 50000);
    });
</script>
@*<script type="text/javascript">
    $(document).ready(function() {
        if ("@ViewBag.Status" == "1") {
            var id = "activeSuccess";
            popupRegister(id);
        } else {
            var id = "activefailed";
            popupRegister(id);
        }
    });
</script>*@
